use Test::More 'no_plan';

use lib "../lib/cpp", "../lib/ioc", "../lib/toolkit", "../lib/message";
use TinyMessage;
use CHeaderParser;

my @includes = ();

CHeaderParser::parse(\*DATA, {
	include => sub { push(@includes, shift); }
});

is(@includes, 4);
is($includes[0], '../services/LogService.h');
is($includes[1], '../services/ConsoleLogService.h');
is($includes[2], '../../ioc/headers/ioc.h');
is($includes[3], 'ConsoleLogServiceProvider.h');

__DATA__
/*
 * ConsoleLogModule.h
 *
 *  Created on: 21.11.2011
 *      Author: caiiiycuk
 */

#ifndef CONSOLELOGMODULE_H_
#define CONSOLELOGMODULE_H_

#include "../services/LogService.h"
#include "../services/ConsoleLogService.h"
#include "../../ioc/headers/ioc.h"

#include "ConsoleLogServiceProvider.h"

class ConsoleLogModule {
protected:
public:
	BIND<LogService, SINGLETON<ConsoleLogService> > getLogSeriviceSingleton();
	BIND<LogService, DIRECT<ConsoleLogService> > getLogSeriviceDirect();
	BIND<LogService, ConsoleLogServiceProvider > getLogSeriviceCustom();

};



#endif /* CONSOLELOGMODULE_H_ */